//
//  ShareManager.h
//  KidReading
//
//  Created by YangShuai on 16/5/24.
//  Copyright © 2016年 刘赞黄Telen. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSUInteger, SSDKResponseState){
    
    /**
     *  开始
     */
    SSDKResponseStateBegin     = 0,
    
    /**
     *  成功
     */
    SSDKResponseStateSuccess    = 1,
    
    /**
     *  失败
     */
    SSDKResponseStateFail       = 2,
    
    /**
     *  取消
     */
    SSDKResponseStateCancel     = 3
};


typedef NS_ENUM(NSUInteger, SSDKPlatformType){
    /**
     *  未知
     */
    SSDKPlatformTypeUnknown             = 0,

};

typedef NS_ENUM(NSUInteger, SSDKContentType){
    
    /**
     *  自动适配类型，视传入的参数来决定
     */
    SSDKContentTypeAuto         = 0,
};


@interface ShareManager : NSObject
//
+(ShareManager*)shareManager;
//分享方法
-(void)JRShareWithText:(NSString*)text ImageArray:(NSArray*)imageArray Url:(NSURL*)shareUrl Title:(NSString*)title Type:(SSDKContentType)type BaseView:(UIView*)baseView statusChange:(void (^)(SSDKResponseState state, SSDKPlatformType type))statuChange;
//
-(BOOL)hasWhatsApp;
-(void)whatsAppSendText:(NSString*)message;

@end
